<?php
namespace Home\Controller;
use Think\Controller;
class MemcachedController {
	public $a = "dasdas111";
    function index() {
    	$m = D('Memcached');
    	$m->qq();
    }

	function test(){
		$mem = new \Think\Cache\Driver\Memcache();
		C('MEMCACHED_SERVER', array(array('localhost',11211,100)));

		$i = "key";
		$mem->set($i, 'This is a testqqq!', 0);
		$val = $mem->get($i);
		echo $val;
	}






}
?>